_sync: function() {
let isActive = this.isActive();
- this.labelItem.label.text = isActive ? _("Turn Off") : _("Connect");
+ this.labelItem.label.text = isActive ? _("Turn Off") : this._section.getConnectLabel();
this.switchItem.setToggleState(isActive);
this.switchItem.setStatus(this._getStatus());
this.emit('icon-changed');
return _("Off");
},
+ getConnectLabel: function() {
+ return _("Connect");
+ },
+
_hasConnection: function(connection) {
return this._connectionItems.has(connection.get_uuid());
},
return 'network-cellular-signal-none-symbolic';
},
+ _getDescription: function() {
+ return this._device.name;
+ },
+
+ getConnectLabel: function() {
+ return _("Use as Internet connection");
+ },
+
getIndicatorIcon: function() {
let state = this._device.active_connection.state;
if (state == NetworkManager.ActiveConnectionState.ACTIVATING)